﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BW.MesProject.Equipment.Domain.Equipment
{
    /// <summary>
    /// 项目表单实体
    /// </summary>
    [SugarTable("ProjectFrom")]
    public class ProjectFromModel:BaseEntity
    {
        /// <summary>
        /// 项目名称
        /// </summary>
        [SugarColumn(ColumnName = "ProjectName", Length = 50)]
        public string ProjectName { get; set; }

        /// <summary>
        /// 项目类型（数据字典）
        /// </summary>
        [SugarColumn(ColumnName = "ProjectType", Length = 50)]
        public string ProjectType { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        [SugarColumn(ColumnName = "ProjectDescription", Length = 100)]
        public string ProjectDescription { get; set; }


        // 添加导航属性（非数据库字段）
        [SugarColumn(IsIgnore = true)]
        public List<ProjectMaintenanceModel> ProjectMaintenances { get; set; }

    }
}
